<?php

	//Importacion y creacion de instancia de la clase queries_inc_get_global_config.php
	$filename = $root_path."db/include/queries_inc_get_global_config.php";
	require_once($filename);
	$query_inc_get_global_config = new Queries_inc_get_global_config();


	    //$sql="SELECT type,value FROM care_config_global WHERE type LIKE '$config_type'";
	    $sql = $query_inc_get_global_config->select_care_config_global($config_type);
	 //   $sql='SELECT type,value FROM care_config_global';

	    $global_result=$db->Execute($sql);
		
		//echo $sql;
	
        if($global_result)
        {
  		    while($data_result= $global_result->FetchRow())
			    {
                      
                     $$data_result['type']=$data_result['value'];				   
			     }
	   		
			    $global_config_ok=1; 
		}
		 else
		 {
		 	$global_config_ok=0;
		}	

?>
